import { HTTP } from "./HTTP"

// 组织列表
export function getPageList(data) {
	return HTTP({
		url: "/declarationInfo/getPage",
		method: "GET",
		data
	});
}

// 判断当前指标知否填写
export function getIsHave(data) {
	return HTTP({
		url: "/targetDeclarationRecord/isHave",
		method: "GET",
		data
	});
}

// 判断某个申报是否都审核完
export function getIsAllOver(data) {
	return HTTP({
		url: "/targetDeclarationRecord/isAllOver",
		method: "GET",
		data
	});
}

// 获取指标详情--说明等数据
export function getTargetDetail(id) {
	return HTTP({
		url: `/targetManagement/${id}`,
		method: "GET",
	});
}

// 获取指标详情--说明等数据
export function pleaseModifyRecord(data) {
	return HTTP({
		url: `/message/pleaseModifyRecord`,
		method: "POST",
		data
	});
}

// 获取填报记录详情
export function getTargetDeclarationRecord(id) {
	return HTTP({
		url: `/targetDeclarationRecord/${id}`,
		method: "GET",
	});
}


// 获取填报记录详情
export function getListByRecordId(data) {
	return HTTP({
		url: `/targetDeclarationRecordReply/listByRecordId`,
		method: "GET",
		data
	});
}

// 获取打分记录
export function getScoreReason(data) {
	return HTTP({
		url: '/targetDeclarationRecord/getScore',
		method: "GET",
		data
	});
}


// 回复
export function replyMessage(data) {
	return HTTP({
		url: `/targetDeclarationRecordReply/add`,
		method: "POST",
		data
	});
}

// 指导专家打分
export function zdScore(data) {
	return HTTP({
		url: `/targetDeclarationRecord/score`,
		method: "get",
		data
	});
}


// 获取整个申报评论
export function getAllReply(data) {
	return HTTP({
		url: `/targetDeclarationRecordReply/listByDeclarationInfoId`,
		method: "GET",
		data
	});
}


// 专家打分
export function zjScore(data) {
	return HTTP({
		url: `/declarationInfo/score`,
		method: "POST",
		data
	});
}


// 审核专家审核
export function shAudit(data) {
	return HTTP({
		url: `/targetDeclarationRecord/audit`,
		method: "GET",
		data
	});
}

// 某填报是否轮到审核
export function isUserCheck(data) {
	return HTTP({
		url: `/targetDeclarationRecord/isUserCheck`,
		method: "GET",
		data
	});
}


// 获取最后文件
export function getAllFile(data) {
	return HTTP({
		url: `/declarationInfo/getAllFile`,
		method: "GET",
		data
	});
}


// 获取最后文件
export function nextData(data) {
	return HTTP({
		url: `/targetDeclarationRecord/next`,
		method: "GET",
		data
	});
}


// 当前用户指标数
export function currentUserTree(data) {
	return HTTP({
		url: `/targetManagement/treeByUser`,
		method: "GET",
		data
	});
}



export function noMeaning(data) {
	return HTTP({
		url: `/targetDeclarationRecord/page`,
		method: "GET",
		data
	});
}

//更改修改指标状态
export function checkUpdateStatus(data) {
	return HTTP({
		url: `/targetDeclarationRecord/checkUpdateStatus`,
		method: "GET",
		data
	});
}


// 组织申请审核、删除
export function checkUpOrgApply(data) {
	return HTTP({
		url: '/declarationInfo',
		method: "PUT",
		data
	});
}

// 获取组织申请详情
export function getOrgApply(data) {
	return HTTP({
		url: `/declarationInfo/${data.id}`,
		method: "GET"
	});
}



